const http = uni.$u.http

// 查询活动
export const getDaoPageList = (data) => {
	let {
		pageNo,
		pageSize,
	} = data

	return http.post('', {
		serviceName: 'TenantDaoService',
		methodName: 'getPageList',
		bizParams: {
			...data
		},
		pagination: {
			pageNum: pageNo,
			pageSize
		}
	})
}

// 查询dao详情
export const getDaoDetail = (data) => {
	return http.post('', {
		serviceName: 'TenantDaoService',
		methodName: 'getDetail',
		bizParams: {
			...data
		}
	})
}

// 加入dao
export const onBoardingDao = (data) => {
	return http.post('', {
		serviceName: 'TenantDaoService',
		methodName: 'onBoarding',
		bizParams: {
			...data
		}
	})
}

export const rageQuitDao = (data) => {
	return http.post('', {
		serviceName: 'TenantDaoService',
		methodName: 'rageQuit',
		bizParams: {
			...data
		}
	})
}

export const getDaoNftGoodsPageList = (data) => {
	return http.post('', {
		serviceName: 'NftGoodsService',
		methodName: 'getPageList',
		bizParams: {
			...data
		},
		pagination: {
			pageNum: 1,
			pageSize: 30
		}
	})
}


